04. Exercise: Introduction to the Activity Lifecycle Diagram
5 Exercise Introduction To The Activity Lifecycle Diagram 2020
Note - Deprecated Method onActivityCreated()
In the video above, at timestamp 00:07, it shows the Fragment lifecycle diagram making use of the onActivityCreated() method. The onActivityCreated() method from the Fragment class is now deprecated. Instead, use
onViewCreated() method for code touching the Fragment's view and onCreate() for other initialization.
The app that you'll be using the explore the activity lifecycle this lesson is Dessert Pusher.
Download the Code for this Lesson
You have two options for the code in this lesson:
- You can download a zip file of the starter code here.
- If you’re familiar with git, you can clone the entire repository. This includes
//TODOinstructions and solution states for every step. To work with the git repository, refer to the code README.